package com.glp.work.flow.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;

@Data
public class CashPlan {
    @Id
    private Long id;
    @ApiModelProperty(value = "资金计划编号")
    private String planCode;
    @ApiModelProperty(value = "状态 -1删除,0草稿,1已提交,2驳回,3拒绝,4待沟通,5审批通过")
    private Integer status;
    @ApiModelProperty(value = "资金主体id")
    private Long funderId;
    @ApiModelProperty(value = "授信客户-统一社会编码")
    private String creditCustomerNo;
    @ApiModelProperty(value = "授信客户名称")
    private String creditCustomerName;
    @ApiModelProperty(value = "授信客户编码")
    private String creditCustomerExtNo;
    @ApiModelProperty(value = "用信客户-统一社会编码")  
    private String useCustomerNo;
    @ApiModelProperty(value = "用信客户名称")
    private String useCustomerName;
    @ApiModelProperty(value = "用信客户编码")
    private String useCustomerExtNo;
    @ApiModelProperty(value = "资金类型")
    private Long cashTypeId;
    @ApiModelProperty(value = "申请金额")
    private Double applyAmount;
    @ApiModelProperty(value = "调整后金额")
    private Double ajustedAmount;
    @ApiModelProperty(value = "内部收益率")
    private Double irr;
    @ApiModelProperty(value = "币种")
    private String currency;
    @ApiModelProperty(value = "支付日期")
    private Long paymentDate;
    @ApiModelProperty(value = "工作流事例id")
    private String procInstId;
    @ApiModelProperty(value = "工作流定义key")
    private String procDefKey;
    @ApiModelProperty(value = "提交用户id")
    private String userNo;
    @ApiModelProperty(value = "提交用户名称")
    private String userName;
    @ApiModelProperty(value = "客户类型 CUSTOMER_TYPE_PERSON个人 CUSTOMER_TYPE_COMPANY企业")
    private String creditCustomerType;

    private Long createTime;

    private Long updateTime;

    private String tenantNo;

    private Long submitTime;

    @ApiModelProperty(value = "collie 柯利  cash  资管")
    @Column(name = "credit_customer_source")
    private String source;
    @ApiModelProperty(value = "用款可能性(%)")
    private Double usePercent;
    @Transient
    private String plannedAmount;
}
